package by.sjc.giz.model;

/**
 * Created by irina on 28.07.14.
 */
public class Subject {
    protected int id;
    protected String name;
    private SubjectType type;

    protected Subject(){}

    protected Subject(SubjectType type , String name) {
        this.type = type;
        this.name = name;
    }

    protected Subject(int id, SubjectType type, String name) {
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SubjectType getType() {
        return type;
    }

    @Override
    public String toString() {
        return "Subject{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
